home *** CD-ROM | disk | FTP | other *** search
- Path: news.connectnet.com!usenet
- From: Cynthia <provstu@cts.com>
- Newsgroups: comp.lang.c
- Subject: Re: Game Programming 21 days: problems compiling code
- Date: Tue, 23 Jan 1996 15:42:14 -0800
- Organization: Providence Seminars
- Message-ID: <31057256.2EE0@cts.com>
- References: <4dn7sh$590@ixnews6.ix.netcom.com> <4dpanu$1fc@vodka.intele.net>
- NNTP-Posting-Host: max-nc-19.connectnet.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4a (Win16; I)
-
- Jason V. Morgan wrote:
- >
- > In article <4dn7sh$590@ixnews6.ix.netcom.com>, psilocyn@ix.netcom.co says...
- > >
- > >I got the book Teach Yourself Game Programming in 21 Days recently, and
- > >the source code was written with a microsoft compiler. My question then
- > >is, how can I change the MS code to work with Borland code (if possible)?
- > >
- >
- > I was able to convert that exact same code for Borland C++ 3.1 and compile
- > and run everything. One problem you may have is that the author used
- > _dos_alloc (or something like that) to get memory for the sound blaster
- > interface. Borland can't have dos allocate its memory with its heap based
- > memory manager in use. You should change the calls to malloc, you can still
- > force it to a segment boundry.Well,to fix this,you need to replace _dos_allloc with malloc()/
- Also,inlcude the files,Stdlib,stdio,and malloc.h.
-